module.exports = {
  type: 'list',
  searchRoute: $route('search'),
  async fetch({ args, page }) {
    //let url = `https://app.movie${args.url}`
/*
    let res = await http_dh.get(args.httpDR,
      header_asb    )
    let ixa = res.data
    */    
    this.title = args.title
    args.iqqDR=0
    
    let ixa = args.ixa
    let ixaqq = ixa.match(
      /<span class='d_category_list'>(.|\n|\r)+?id="SpanadBox">/
    )
    
if(ixaqq==null){
  ixaqq = ixa.match(/class="hlist_update">(.|\n|\r)+?"SpanadBox">/)
}

    let uutt = []
    let items = []

    let nnaa = new RegExp(/href=['"](.+?)['"]>(.+?)</g)
let lsaa
let wz='//'+$prefs.get('baseURL')
    //循环获取和显示新的内容
    while ((uutt = nnaa.exec(ixaqq)) != null) {
      lsaa=uutt[1].indexOf($prefs.get('baseURL'))
      if(lsaa==-1){
        uutt[1]=wz +uutt[1]
      }
      
      let lsls = uutt
      items.push({
        onClick: item=> {
          httpDR = 
          //$router.to($route('liebiao',{}))
          
          $router.to($route('LB_liebiao',{title:item.title, httpDR:encodeURI('https:' + lsls[1]),iqqDR:args.iqqDR}))
        },

        //大小，最多12
        spanCount: 12,
        title: uutt[2]
      })
    }

    
    return items
    /*
    return [
      {
        
        title: ixa
      }]
      */
  }
}